//
//  ZZCBanerWebController.m
//  ZZC-Finance
//
//  Created by a on 2017/9/9.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "ZZCBanerWebController.h"

@interface ZZCBanerWebController ()<UIWebViewDelegate>
@property (weak, nonatomic) IBOutlet UIWebView *banerWeb;

@end

@implementation ZZCBanerWebController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    float chacha = [[NSUserDefaults standardUserDefaults] floatForKey:@"appchacha"];
    chacha += 0.02;
    [[NSUserDefaults standardUserDefaults] setFloat:chacha forKey:@"appchacha"];
    
    //    if (self.isLogin) {
//    self.navigationController.delegate = self;
    // Do any additional setup after loading the view from its nib.
    self.banerWeb.delegate = self;
    // Do any additional setup after loading the view from its nib.
//    NSString *token = ZZCNSUserDefaults(@"token");
    NSURL *urlsstr = [NSURL URLWithString:@"https://www.baidu.com/"];
    NSURLRequest *request = [NSURLRequest requestWithURL:urlsstr];
    //让内容自动适应屏幕大小
    self.banerWeb.scalesPageToFit = YES;
    [self.banerWeb loadRequest:request];
    [self.view addSubview:_banerWeb];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
